﻿using FluentNHibernate.Automapping;
using FluentNHibernate.Automapping.Alterations;
using Framework.Tests.Repository.Entities;

namespace Framework.Tests.Repository.AutoMappingOverride
{
    public class SocietyMap : IAutoMappingOverride<Society>
    {
        public void Override(AutoMapping<Society> mapping)
        {
            mapping.References(x => x.SocietyNumber);
            mapping.HasOne(s => s.Address);
        }
    }
}